/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package pe.edu.pucp.Reportes.Vista;

import java.awt.event.ActionListener;
import java.awt.event.ItemListener;
import java.util.ArrayList;
import java.util.Date;
import javax.swing.JFrame;
import javax.swing.JTextField;
import javax.swing.table.DefaultTableModel;
import pe.edu.pucp.Modelo.Ciudad;
import pe.edu.pucp.Modelo.Continente;
import pe.edu.pucp.Modelo.Pais;
import pe.edu.pucp.Modelo.Permiso;
import pe.edu.pucp.Util.Constante;
import pe.edu.pucp.Util.Reportclass.RepViajes;
import pe.edu.pucp.Util.ValHelper;

/**
 *
 * @author oscar
 */
public class ReporteEnviosGUI extends javax.swing.JPanel {
    private JFrame padre;
    /**
     * Creates new form ReporteEnviosGUI
     */
    public ReporteEnviosGUI() {
        initComponents();
        ((JTextField)dtcFechaInicio.getDateEditor()).setEditable(false);
        ((JTextField)dtcFechaFin.getDateEditor()).setEditable(false); 
        dtcFechaInicio.setMaxSelectableDate(new Date());
        dtcFechaFin.setMaxSelectableDate(new Date());             
    }

    public JFrame getPadre() { return padre; }
    
//    public void setpath(String fileName) {
//        this.txtPath.setText(fileName);
//    }
//    
//    public String getpath() {
//        return this.txtPath.getText();
//    }
//    
    public Date getFechaInicio() { 
        return dtcFechaInicio.getDate(); 
    }
    
    public Date getFechaFin() { 
        return dtcFechaFin.getDate(); 
    }   
   
    public int getContinenteOrigen(){ 
        if (cmbContinenteOrigen.getSelectedIndex() > 0) {
            return cmbContinenteOrigen.getSelectedIndex() - 1;
        }
        else {
            return -1;
        }                
    }
    
    public int getContinenteDestino(){ 
        if (cmbContinenteDestino.getSelectedIndex() > 0) {
            return cmbContinenteDestino.getSelectedIndex() - 1;
        }
        else {
            return -1;
        }                                
    }  
     
    public int getPaisOrigen(){ 
        if (cmbPaisOrigen.getSelectedIndex() > 0) {
            return cmbPaisOrigen.getSelectedIndex() - 1;
        }
        else {
            return -1;
        }                                                
    }  
    
    public int getPaisDestino(){ 
        if (cmbPaisDestino.getSelectedIndex() > 0) {
            return cmbPaisDestino.getSelectedIndex() - 1;
        }
        else {
            return -1;
        }                 
    }     
    
    public int getCiudadOrigen(){ 
        if (cmbCiudadOrigen.getSelectedIndex() > 0) {
            return cmbCiudadOrigen.getSelectedIndex() - 1;
        }
        else {
            return -1;
        }                         
    }  
    
    public int getCiudadDestino(){ 
        if (cmbCiudadDestino.getSelectedIndex() > 0) {
            return cmbCiudadDestino.getSelectedIndex() - 1;
        }
        else {
            return -1;
        }                     
    }        
    
    public void mostrarPermisos(ArrayList<Permiso> list){            
        if (!list.isEmpty()){                                
            btnBuscar.setEnabled(buscarPermiso(list,Constante.P_ENV_REP_BUSCAR)==1);
            btnGenerarPDF.setEnabled(buscarPermiso(list,Constante.P_ENV_REP_GENERAR)==1);
        }
    }    
  
    public int buscarPermiso(ArrayList<Permiso> list, int idel){
        int per=-1;
        for (Permiso opc : list){
            if (opc.getElemento().getIdelemento()==idel){ per =opc.getPermiso(); }
        }
        return per;
    }     
    
    public void addLimpiarListener(ActionListener listener) { btnLimpiar.addActionListener(listener); }
        
    public void addBuscarListener(ActionListener ml) { btnBuscar.addActionListener(ml); }
    
    public void addGenerarListener(ActionListener ml) { btnGenerarPDF.addActionListener(ml); }
    
    public void addCambiarContinenteOrigen(ItemListener ml){ cmbContinenteOrigen.addItemListener(ml); }     
    
    public void addCambiarContinenteDestino(ItemListener ml){ cmbContinenteDestino.addItemListener(ml); }     
    
    public void addCambiarPaisOrigen(ItemListener ml){ cmbPaisOrigen.addItemListener(ml); }  
    
    public void addCambiarPaisDestino(ItemListener ml){ cmbPaisDestino.addItemListener(ml); }  
    
    public void addCambiarCiudadOrigen(ItemListener ml){ cmbCiudadOrigen.addItemListener(ml); }      
    
    public void addCambiarCiudadDestino(ItemListener ml){ cmbCiudadDestino.addItemListener(ml); }
  
//    public void addCarpeta(ActionListener ml) {
//        btnPath.addActionListener(ml); 
//    }
    
    public void llenarComboContinenteOrigen(ArrayList<Continente> lista){
        cmbContinenteOrigen.removeAllItems();
        cmbContinenteOrigen.addItem(Constante.DEFAULT_OPCION);     
        if(lista!=null){
            for (Continente opc : lista){
                cmbContinenteOrigen.addItem(opc.getDescripcion());
            }
        }
    }
    
    public void llenarComboContinenteDestino(ArrayList<Continente> lista){
        cmbContinenteDestino.removeAllItems();
        cmbContinenteDestino.addItem(Constante.DEFAULT_OPCION);     
        if(lista!=null){
            for (Continente opc : lista){
                cmbContinenteDestino.addItem(opc.getDescripcion());
            }
        }
    }    
    
    public void llenarComboPaisOrigen(ArrayList<Pais> lista){
        cmbPaisOrigen.removeAllItems();
        cmbPaisOrigen.addItem(Constante.DEFAULT_OPCION);     
        if(lista!=null){           
            for (Pais opc : lista){
                cmbPaisOrigen.addItem(opc.getDescripcion());
            }
        }
    }
    
    public void llenarComboPaisDestino(ArrayList<Pais> lista){
        cmbPaisDestino.removeAllItems();
        cmbPaisDestino.addItem(Constante.DEFAULT_OPCION);     
        if(lista!=null){           
            for (Pais opc : lista){
                cmbPaisDestino.addItem(opc.getDescripcion());
            }
        }
    }
    
    public void llenarComboCiudadOrigen(ArrayList<Ciudad> lista){
        cmbCiudadOrigen.removeAllItems();
        cmbCiudadOrigen.addItem(Constante.DEFAULT_OPCION);     
        if(lista!=null){
            for (Ciudad opc : lista){
                cmbCiudadOrigen.addItem(opc.getDescripcion());
            }
        }
    }    
    
    public void llenarComboCiudadDestino(ArrayList<Ciudad> lista){
        cmbCiudadDestino.removeAllItems();
        cmbCiudadDestino.addItem(Constante.DEFAULT_OPCION);     
        if(lista!=null){
            for (Ciudad opc : lista){
                cmbCiudadDestino.addItem(opc.getDescripcion());
            }
        }
    }  
    
    public void llenaGrilla(ArrayList<RepViajes> lista){        
        if(lista!=null){ 
            ((DefaultTableModel) this.tblResultados.getModel()).setRowCount(0);
            for (int f = 0; f<lista.size();f++){
                ((DefaultTableModel) tblResultados.getModel()).setRowCount(tblResultados.getRowCount()+1);
                tblResultados.setValueAt(lista.get(f).getAeropuertoOrigen(),f,0);
                tblResultados.setValueAt(lista.get(f).getAeropuertoDestino(),f,1);
                tblResultados.setValueAt(lista.get(f).getEnvios(),f,2);
                tblResultados.setValueAt(lista.get(f).getPaquetes(),f,3);    
            }
            pnEnvios.setBorder(javax.swing.BorderFactory.createTitledBorder("Envios ("+lista.size() + ")"));
            
        } 
        else {
            pnEnvios.setBorder(javax.swing.BorderFactory.createTitledBorder("Envios"));
        }
    }    
    
    public void LimpiarDatos(){
        cmbContinenteOrigen.setSelectedIndex(0);
        cmbPaisOrigen.setSelectedIndex(0);
        cmbCiudadOrigen.setSelectedIndex(0);                
        cmbContinenteDestino.setSelectedIndex(0);
        cmbPaisDestino.setSelectedIndex(0);
        cmbCiudadDestino.setSelectedIndex(0);
        dtcFechaInicio.setDate(null);
        dtcFechaFin.setDate(null);
        ((DefaultTableModel) this.tblResultados.getModel()).setRowCount(0);
    }
    
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        pnEnvios = new javax.swing.JPanel();
        jScrollPane1 = new javax.swing.JScrollPane();
        tblResultados = new javax.swing.JTable();
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        cmbContinenteOrigen = new javax.swing.JComboBox();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        cmbPaisOrigen = new javax.swing.JComboBox();
        dtcFechaFin = new com.toedter.calendar.JDateChooser();
        jLabel4 = new javax.swing.JLabel();
        dtcFechaInicio = new com.toedter.calendar.JDateChooser();
        cmbPaisDestino = new javax.swing.JComboBox();
        cmbContinenteDestino = new javax.swing.JComboBox();
        jLabel6 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jLabel8 = new javax.swing.JLabel();
        cmbCiudadOrigen = new javax.swing.JComboBox();
        cmbCiudadDestino = new javax.swing.JComboBox();
        btnBuscar = new javax.swing.JButton();
        btnLimpiar = new javax.swing.JButton();
        btnGenerarPDF = new javax.swing.JButton();

        setBorder(javax.swing.BorderFactory.createTitledBorder(""));
        setMaximumSize(new java.awt.Dimension(764, 700));
        setMinimumSize(new java.awt.Dimension(764, 700));
        setName(""); // NOI18N
        setPreferredSize(new java.awt.Dimension(764, 700));

        pnEnvios.setBorder(javax.swing.BorderFactory.createTitledBorder("Resultados"));

        tblResultados.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {

            },
            new String [] {
                "Origen", "Destino", "Vuelos", "Paquetes"
            }
        ) {
            boolean[] canEdit = new boolean [] {
                false, false, false, false
            };

            public boolean isCellEditable(int rowIndex, int columnIndex) {
                return canEdit [columnIndex];
            }
        });
        tblResultados.getTableHeader().setReorderingAllowed(false);
        jScrollPane1.setViewportView(tblResultados);
        tblResultados.getColumnModel().getColumn(0).setResizable(false);
        tblResultados.getColumnModel().getColumn(0).setPreferredWidth(250);
        tblResultados.getColumnModel().getColumn(1).setResizable(false);
        tblResultados.getColumnModel().getColumn(1).setPreferredWidth(250);
        tblResultados.getColumnModel().getColumn(2).setResizable(false);
        tblResultados.getColumnModel().getColumn(2).setPreferredWidth(100);
        tblResultados.getColumnModel().getColumn(3).setResizable(false);
        tblResultados.getColumnModel().getColumn(3).setPreferredWidth(100);

        javax.swing.GroupLayout pnEnviosLayout = new javax.swing.GroupLayout(pnEnvios);
        pnEnvios.setLayout(pnEnviosLayout);
        pnEnviosLayout.setHorizontalGroup(
            pnEnviosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnEnviosLayout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jScrollPane1)
                .addContainerGap())
        );
        pnEnviosLayout.setVerticalGroup(
            pnEnviosLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(pnEnviosLayout.createSequentialGroup()
                .addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 365, Short.MAX_VALUE)
                .addContainerGap())
        );

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder("Reporte de Cancelacion de paquetes"));
        jPanel1.setPreferredSize(new java.awt.Dimension(634, 240));

        jLabel1.setText("Continente:");

        jLabel2.setText("Fecha fin: ");

        jLabel3.setText("Pais:");

        //dtcFechaFin.setEnabled(false);
        dtcFechaFin.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                dtcFechaFinPropertyChange(evt);
            }
        });

        jLabel4.setText("Fecha inicio: ");

        //dtcFechaInicio.setEnabled(false);
        dtcFechaInicio.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                dtcFechaInicioPropertyChange(evt);
            }
        });

        jLabel6.setText("Aeropuerto origen");

        jLabel7.setText("Aeropuerto destino");

        jLabel8.setText("Ciudad:");

        btnBuscar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Recurso/search.png"))); // NOI18N

        btnLimpiar.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Recurso/refresh.png"))); // NOI18N

        btnGenerarPDF.setIcon(new javax.swing.ImageIcon(getClass().getResource("/Recurso/address_book.png"))); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jLabel1)
                            .addComponent(jLabel3)
                            .addComponent(jLabel8)
                            .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(cmbContinenteOrigen, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cmbPaisOrigen, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cmbCiudadOrigen, 0, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(dtcFechaInicio, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(dtcFechaFin, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                        .addGap(18, 18, 18)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(cmbContinenteDestino, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(cmbPaisDestino, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(cmbCiudadDestino, javax.swing.GroupLayout.PREFERRED_SIZE, 260, javax.swing.GroupLayout.PREFERRED_SIZE))
                                .addGap(83, 83, 83))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(btnBuscar)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btnLimpiar, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(btnGenerarPDF, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(45, 45, 45))))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                        .addGap(0, 0, Short.MAX_VALUE)
                        .addComponent(jLabel6)
                        .addGap(136, 136, 136)
                        .addComponent(jLabel7)
                        .addGap(150, 150, 150))))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(jLabel7))
                .addGap(18, 18, 18)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(cmbContinenteOrigen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel1)
                    .addComponent(cmbContinenteDestino, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLabel3)
                    .addComponent(cmbPaisOrigen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cmbPaisDestino, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                    .addComponent(jLabel8)
                    .addComponent(cmbCiudadOrigen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(cmbCiudadDestino, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(jLabel4)
                            .addComponent(dtcFechaInicio, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
                            .addComponent(jLabel2)
                            .addComponent(dtcFechaFin, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(49, 49, 49)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(btnBuscar, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnLimpiar, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(btnGenerarPDF, javax.swing.GroupLayout.PREFERRED_SIZE, 44, javax.swing.GroupLayout.PREFERRED_SIZE))))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 736, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(0, 0, Short.MAX_VALUE))
                    .addComponent(pnEnvios, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGap(8, 8, 8)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 268, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(pnEnvios, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
    }// </editor-fold>//GEN-END:initComponents

    private void dtcFechaInicioPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_dtcFechaInicioPropertyChange
        if ("date".equals(evt.getPropertyName())) {
            dtcFechaFin.setMinSelectableDate((Date) evt.getNewValue());
        } 
    }//GEN-LAST:event_dtcFechaInicioPropertyChange

    private void dtcFechaFinPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_dtcFechaFinPropertyChange
        if ("date".equals(evt.getPropertyName())) {
            dtcFechaInicio.setMaxSelectableDate((Date) evt.getNewValue());                              
        }  
    }//GEN-LAST:event_dtcFechaFinPropertyChange

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton btnBuscar;
    private javax.swing.JButton btnGenerarPDF;
    private javax.swing.JButton btnLimpiar;
    private javax.swing.JComboBox cmbCiudadDestino;
    private javax.swing.JComboBox cmbCiudadOrigen;
    private javax.swing.JComboBox cmbContinenteDestino;
    private javax.swing.JComboBox cmbContinenteOrigen;
    private javax.swing.JComboBox cmbPaisDestino;
    private javax.swing.JComboBox cmbPaisOrigen;
    private com.toedter.calendar.JDateChooser dtcFechaFin;
    private com.toedter.calendar.JDateChooser dtcFechaInicio;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JPanel pnEnvios;
    private javax.swing.JTable tblResultados;
    // End of variables declaration//GEN-END:variables
}
